import { Component, OnInit } from '@angular/core';
import {Router} from "@angular/router";

@Component({
  selector: 'app-list',
  templateUrl: './list.component.html',
  styleUrls: ['./list.component.css']
})
export class ListComponent implements OnInit {

  name:string="";


  constructor(public router:Router) { }

  ngOnInit() {
  }

  nav(url:string){
    this.router.navigateByUrl(url);
  }

}
